﻿using System;
using System.Collections.Generic;

namespace MinimalistFoodStreet.BackEnd.Infrastructure.EFCore;

/// <summary>
/// 商家表
/// </summary>
public partial class Businesss
{
    /// <summary>
    /// r,u,d-编号
    /// </summary>
    public int BId { get; set; }

    /// <summary>
    /// c,r,u-账号编号
    /// </summary>
    public int BAccountId { get; set; }

    /// <summary>
    /// c,r,u-微信ID
    /// </summary>
    public string BOpenId { get; set; } = null!;

    /// <summary>
    /// c,r,u-店铺名称
    /// </summary>
    public string BName { get; set; } = null!;

    /// <summary>
    /// c,r,u-店主姓名
    /// </summary>
    public string BManagerName { get; set; } = null!;

    /// <summary>
    /// r-创建时间
    /// </summary>
    public DateTime BCreateTime { get; set; }

    /// <summary>
    /// r-修改时间
    /// </summary>
    public DateTime? BUpdateTime { get; set; }

    public virtual Account BAccount { get; set; } = null!;

    public virtual ICollection<Chart> Charts { get; set; } = new List<Chart>();

    public virtual ICollection<Collection> Collections { get; set; } = new List<Collection>();

    public virtual ICollection<History> Histories { get; set; } = new List<History>();

    public virtual ICollection<Order> Orders { get; set; } = new List<Order>();
}
